﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace Scenario.WAPI
{
    public partial class ApplicationHelper
    {
        [DllImport("WAPI.dll", EntryPoint = "executeApi", CharSet = CharSet.Ansi)]
        [return: MarshalAs(UnmanagedType.AnsiBStr)]
        private static extern String ExecuteApi(String sApplicationApi, ref Response response);

        [DllImport("WAPI.dll", EntryPoint = "getApplicationForExtendedAttribute", CharSet = CharSet.Ansi)]
        [return: MarshalAs(UnmanagedType.AnsiBStr)]
        private static extern String GetApplicationForExtendedAttribute(String AttributeName, String AttributeValue, ref Response response);

        [DllImport("WAPI.dll", EntryPoint = "getApplications", CharSet = CharSet.Ansi)]
        [return: MarshalAs(UnmanagedType.AnsiBStr)]
        private static extern String GetApplications(ref Response response);
       
    }
}
